package com.y2.authprj.bean.auth.vo;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class StaffVo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8394886967772798759L;
	
	private int staffId;
	private String staffNum;
	private String chnName;
	private String surName;
	private String pwd;
	private String mobile;
	private int changePwd;
	private int deleteFlag;
	private Date createTime;
	private String loginIp;
	private Date loginTime;
	private int logStatus;
	public int getStaffId() {
		return staffId;
	}
	public void setStaffId(int staffId) {
		this.staffId = staffId;
	}
	public String getStaffNum() {
		return staffNum;
	}
	public void setStaffNum(String staffNum) {
		this.staffNum = staffNum;
	}
	public String getChnName() {
		return chnName;
	}
	public void setChnName(String chnName) {
		this.chnName = chnName;
	}
	public String getSurName() {
		return surName;
	}
	public void setSurName(String surName) {
		this.surName = surName;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public int getChangePwd() {
		return changePwd;
	}
	public void setChangePwd(int changePwd) {
		this.changePwd = changePwd;
	}
	public int getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getLoginIp() {
		return loginIp;
	}
	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}
	public Date getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	public int getLogStatus() {
		return logStatus;
	}
	public void setLogStatus(int logStatus) {
		this.logStatus = logStatus;
	}
	
	private Integer num=5;
	//第几页
	private Integer pageNum =1;
	
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		if(null==num||num<=0){
			num = 5;
		}
		this.num = num;
	}
	
	public Integer getPageNum() {
		return pageNum;
	}
	public void setPageNum(Integer pageNum) {
		if(null==pageNum||pageNum<=0){
			pageNum = 1;
		}
		this.pageNum = pageNum;
	}
	public Integer getBegin(){
		return (pageNum-1)*num;
	}
}
